-- GENERATED SPELL FOR [Torturer LeCraft] --


function spell0_27209(pUnit, Event) --@Hemorrhage,n/a--
pUnit:FullCastSpellOnTarget(30478,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27209', 10000, 1)
end

function spell1_27209(pUnit, Event) --@Kidney Shot,n/a--
pUnit:FullCastSpellOnTarget(30621,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27209', 3000, 1)
end

function Sorts_27209(pUnit, Event)
local choix_sorts_27209 = math.random(0, 1)
if choix_sorts_27209 == 0 then
pUnit:RegisterEvent('spell0_27209', 1, 1)
end
if choix_sorts_27209 == 1 then
pUnit:RegisterEvent('spell1_27209', 1, 1)
end
end

function mob27209_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27209', math.random(1500, 3000), 1)
end

function mob27209_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27209_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27209_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27209, 1, 'mob27209_Action')
RegisterUnitEvent(27209, 2, 'mob27209_Leave')
RegisterUnitEvent(27209, 3, 'mob27209_Kill')
RegisterUnitEvent(27209, 4, 'mob27209_Die')
